<html xmlns='http://www.w3.org/1999/xhtml'
      xmlns:p='http://primefaces.org/ui'
      xmlns:h='http://java.sun.com/jsf/html'
      xmlns:cc='http://java.sun.com/jsf/composite'>

<cc:interface>

  <cc:attribute name='id'/>

  <cc:attribute name='bean'/>

</cc:interface>


<cc:implementation>

<h:panelGroup id='table'>

<p:dataTable value='#{cc.attrs.bean.lsEntity}' var='x' paginator='true' paginatorPosition='bottom' rows='20' rendered='#{!cc.attrs.bean.form}' resizableColumns='true'

             paginatorAlwaysVisible='false' emptyMessage='' selectionMode='single' rowKey='#{x.id}' filteredValue='#{cc.attrs.bean.lsFiltered}' style='width:100%'>

  <p:ajax event='rowSelect' listener='#{cc.attrs.bean.uiRowEdit}' update='@(.#{cc.attrs.bean.name})'/>


  <cc:insertChildren/>

</p:dataTable>

</h:panelGroup>

</cc:implementation>

</html>
